<template>
  <view :style="themeColor">
    <view class="page">
      <fu-custom bgColor="bg-white" :isBack="true" :isBottom="true">
        <block slot="content">消息详情</block>
      </fu-custom>

      <view class="flex flex-direction align-stretch articleDetails_flex_1">
        <text class='articleDetails_fd1_0'>{{dataMessage.title}}</text>
        <text class='articleDetails_fd1_1'>{{dataMessage.create_time}}</text>
        <jyf-parser class='articleDetails_fd1_2' :html="dataMessage.content | richTextFormat">
        </jyf-parser>
      </view>




    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "dataMessage": {
          "aid": "",
          "title": "",
          "create_time": "",
          "content": "",
          "thumb": "",
          "category_name": ""
        },
        "id": "9"
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        id
      } = options
      if (id !== undefined) this.id = id
      this.getMessageFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取文章详情
      async getMessageFunc() {
        //请求方法
        //数据验证

        let datadataMessage = await this.$api.get(global.apiUrls.post641576c24de11, {
          article_id: this.id
        });

        if (datadataMessage.data.code != 1) {
          this.$message.info(datadataMessage.data.msg);
          return
        }
        let infodataMessage = datadataMessage.data;
        this.dataMessage = infodataMessage.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #fff;
    background-size: 100% auto;
  }

  .articleDetails_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .articleDetails_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #333;
  }

  .articleDetails_fd0_0_c0_c0 {
    font-size: 32rpx;
    font-weight: 500;
    color: #333;
  }

  .articleDetails_fd0_0_c0 {
    width: 180rpx;
  }

  .articleDetails_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .articleDetails_flex_1 {
    padding: 25rpx 32rpx 16rpx 32rpx;
  }

  ::v-deep .articleDetails_fd1_2 {
    width: 100%;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .articleDetails_fd1_1 {
    color: #999999;
    font-size: 24rpx;
    line-height: 33rpx;
    font-weight: 400;
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .articleDetails_fd1_0 {
    font-size: 32rpx;
    line-height: 54rpx;
    font-weight: 500;
    color: #333333;
  }
</style>